package com.zdj.presentation.mappers;

import com.zdj.data.entity.LoginInfo;
import com.zdj.presentation.modules.user.models.UserModel;

import java.util.List;

/**
 * Created by dengjie zhang on 2017/1/23.
 */

public class LoginInfoMapperUserModel implements IEntity2Model<LoginInfo,UserModel>{
    @Override
    public UserModel one2one(LoginInfo loginInfo) {
        UserModel userModel = new UserModel();
        userModel.userId = loginInfo.getUid();
        userModel.coverUrl = loginInfo.getHead_img();
        userModel.name = loginInfo.getName();
        userModel.studentNumber = loginInfo.getStudent_no();
        return userModel;
    }

    @Override
    public List<UserModel> more2more(List<LoginInfo> loginInfos) {
        return null;
    }
}
